﻿using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Demos.util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.门店出入库.库存管理
{
    public partial class Form盘点 : DevExpress.XtraEditors.XtraForm
    {
        private List<VIO> list = new List<VIO>();

        public Form盘点()
        {
            InitializeComponent();
            list.Add(new VIO("1","yi"));
            list.Add(new VIO("2","er"));
            list.Add(new VIO("3","san"));
            this.gridControl1.DataSource = list;
        }

        private void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
        {
            this.list[this.gridView1.FocusedRowHandle].name = e.Value.ToString();
            FunctionHelper.JsonSerialization(list);
            String a = "1";
        }
    }

    public class VIO
    {
        public String id { get; set; }
        public String name { get; set; }
        public VIO(String id,String name)
        {
            this.id = id;
            this.name = name;
        }
    }
}